<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" template="/templates/list.xhtml">
	<ui:param name="bean" value="#{contaBean}" />
	<ui:param name="tituloPagina" value="Listar Conta" />
	<ui:param name="renderedBtnSalvar" value="false" />
	<ui:param name="renderedBtnSalvarContinuar" value="false" />

	<ui:define name="contList">
		<ui:decorate template="templates/gridListagem.xhtml">
			<ui:define name="contentGridListagem">
			
				<p:column headerText="Titulo" style="width:30%"
					styleClass="no-border">
					<h:outputText value="#{item.titulo}" />
				</p:column>

				<p:column headerText="Saldo" styleClass="text-right no-border">
					<h:outputText style="color: #{item.saldo lt 0 ? 'red' : 'none'};"
						value="#{item.saldo}"
						styleClass="text-right color-success text-right">
						<f:convertNumber type="currency" currencySymbol="R$" />
					</h:outputText>
				</p:column>

			</ui:define>
		</ui:decorate>

	</ui:define>


</ui:composition>